package cn.tradewin.pmp.pages.security;

import cn.tradewin.pmp.base.ConversationalPage;
import cn.tradewin.pmp.persist.model.Contract;

public class AddContract extends ConversationalPage {

	private static final String CONTRACT_REQUEST_KEY = "ContractKey";
	
	protected void saveContractToConversation(Contract contract) {
		this.conversations.saveToConversation(this.getConversationId(), CONTRACT_REQUEST_KEY, contract);
	}

	protected Contract restoreContractFromConversation() {
		return (Contract) conversations.restoreFromConversation(this.getConversationId(), CONTRACT_REQUEST_KEY);
	}
}
